<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			window.onload = function(){
				var btn = document.getElementById("btn");
				btn.onclick = function(){
					var city = document.getElementById("city");
					var lis = city.getElementsByTagName("li");
					for(var i=0; i<lis.length; i++){
						alert(lis[i].innerHTML);
					}
					// 查找所有li节点
					
				}
			}
		</script>
	</head>
	<body>
		<div >
			<ul id="city">
				<li id="bj">北京</li>
				<li>上海</li>
				<li>广州</li>
			</ul>
		</div>
		
		<div class="inner">
			gender:
			<input type="radio" name="gender" value="male" />
			Male
			<input type="radio" name="gender" value="female" />
			Female
		</div>
		<div id="btn">
			<button>按钮</button>
		</div>
	</body>
</html>
